import allure

from api.auth import AuthAPI


class TestCompanyBaseinfo:

    # 前置处理
    def setup_method(self):
        self.auth_api = AuthAPI()

    @allure.title("经纬度比对接口")
    def test01_success(self):
        data = {
            "address": "四川省成都市简阳市四川省,成都市,简阳市石钟镇新街51号1层",
            "addressEnd": "四川省成都市简阳市四川省成都市简阳市石钟镇中国邮政储蓄银行(简阳市石钟镇营业所)",
            "distance": "50000",
            "serviceCode": "agent"
        }
        res = self.auth_api.getDistance(data=data)
        assert 200 == res.status_code
